package homework_02.do_demo;

public class Demo_08 {
    public static void main(String[] args) {
        System.out.println();
        int x;
        int y;
        int z;
        for (x = 0; x <= 20; x++) {
            for (y = 0; y <= 33; y++) {
                z = 100 - x - y;
                if (x * 5 + y * 3 + z / 3 == 100 && z % 3 == 0) {
                    System.out.println("公鸡：" + x + "只" + "\t" + "母鸡： " + y + "只" + "\t" + "小鸡" + z + "只");
                }
            }
        }
    }
}